package test.web;

import org.junit.After;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;

import com.alibaba.fastjson.JSON;

import hyl.core.MyFun;
import hyl.ext.ws.TopicManager;
import hyl.ext.ws.WsServe2;
import hyl.ext.ws.WsServe3;

public class testweb {

	@BeforeClass
	public static void setUpBeforeClass() throws Exception {
	}

	@Before
	public void setUp() throws Exception {
	}

	@After
	public void tearDown() throws Exception {
	}

	//@Test
	public void test订阅主题() {
		TopicManager wst=new TopicManager();		
		wst.f批量订阅( "报表1","1","2","3");
		wst.f批量订阅( "报表2","1","2","3");
		//wst.f批量退订( "报表1","1","2","3");
		//wst.f批量退订( "报表2","1","2","3");
		//wst.f删除主题("报表1");
		//wst.f移除客户("1");
		System.out.println(JSON.toJSONString(wst.get相似主题("报*")));
		//System.out.println(JSON.toJSONString(wst.get客户 ("*")));
		System.out.println(JSON.toJSONString(wst.get相似主题("报*")));
		//System.out.println(JSON.toJSONString(wst.get客户相关("*")));
		
//		wst.f订阅主题("1", "报表1");
//		wst.f订阅主题("2", "报表1");
//		wst.f订阅主题("3", "报表1");
		
	}
	@Test
	public void test静态类() {
		WsServe2 wsServe2=new WsServe2();
		WsServe3 wsServe3=new WsServe3();
		WsServe2._在线终端集.put("2",wsServe2);
		MyFun.print(WsServe2._在线终端集," ",WsServe3._在线终端集);
		
	}
	
	

}
